package com.example.active.trans;

import java.lang.management.ManagementFactory;

public class Client {
    public static final String URL = "tcp://localhost:61616";
    public static final String TOPIC = "topic";

    public static void main(String[] args) {
        String pid = ManagementFactory.getRuntimeMXBean().getName();
        new Thread(new Sender(URL, TOPIC, pid)).start();
        new Thread(new Receiver(URL, TOPIC, args[0])).start();
    }
}
